package com.xx.pmis.services;

import java.util.List;

import com.xx.pmis.model.Diary;

public interface DiaryService {
	public void saveOrUpdateDiary(Diary diary) throws Exception;
	public void saveDiary(Diary diary) throws Exception;
	public void deleteDiary(Diary diary) throws Exception;
	// 根据日记ID查询该日记
	public Diary getDiaryByDiaryID(String diaryID) throws Exception;    
	// 查询所有日记
	public List<Diary> getAllDiary() throws Exception;
	// 查询所有日记，分页显示
	public List<Diary> getAllDiaryByPage(int currentPage, int lineSize) throws Exception;
	// 日记数
	public int getCountOfDiary() throws Exception;


}
